FROM registry.cn-hangzhou.aliyuncs.com/tan90/openjdk:8-jre-slim

LABEL mainatiner="tan90" \
      company="江苏铁人科技有限公司" \
      address="南通市崇州大道60号南通创新区紫琅科技城13-A号楼602室"

WORKDIR /app

VOLUME /app/logs

#RUN sed -i 's@http://deb.debian.org/debian@https://mirrors.aliyun.com/debian@g' /etc/apt/sources.list && \
#    apt-get update && \
#    apt-get install -y --no-install-recommends wget curl vim telnet net-tools inetutils-ping && \
#    rm -rf /var/lib/apt/lists/*

ADD soft/TDengine-client-3.3.0.0-Linux-x64-Lite.tar.gz /app
RUN cd TDengine-client-3.3.0.0-lite && ./install_client.sh

EXPOSE 9000

ENV JVM_OPT="-Duser.timezone=GMT+8 -Xms128m -Xmx256m"

COPY sailboat-training-starter/target/*.jar app.jar

ENTRYPOINT ["/bin/sh", "-c", "java $JVM_OPT -jar app.jar"]